import request from "./http";

// 获取用戶名密碼验证
export function getUser(params){
    return request({
        url:"/user/detail",
        method:"get",
        // 注意:post 使用data
        // 注意:get 使用params
        params
    })
}
//获取用户歌单
export function getSubCount(params){
    return request({
        url:"/user/playlist",
        method:"get",
        // 注意:post 使用data
        // 注意:get 使用params
        params
    })
}
//退出登录
export function delUser(){
    return request({
        url:"/logout",
        method:"post",
    })
}
export function delSUser(){
    return request({
        url:"/login/refresh",
        method:"get",
    })
}
// 添加歌曲到歌单
export function addSong(params){
    return request({
        url:"/playlist/tracks",
        method:"get",
        params
    })
}
// 收藏/取消收藏歌单
export function getSubscribe(params){
    return request({
        url:"/playlist/subscribe",
        method:"get",
        params
    })
}
//获取每日推荐

export function getDaySong(){
    return request({
        url:"/recommend/songs",
        method:"get",
        
    })
}
//获取私人fm
export function getFM(){
    return request({
        url:"/personal_fm",
        method:"get",
        
    })
}
///recommend/resource
export function getResource(){
    return request({
        url:"/recommend/resource",
        method:"get",
        
    })
}
//获取用户信息
export function getUserData(params){
    return request({
        url:"/user/detail",
        method:"get",
        params
    })
}
export function getUserDataS(){
    return request({
        url:"/user/account",
        method:"get",
    })
}

export function getLatelyPlay(){
    return request({
        url:"/record/recent/song",
        method:"get",
    })
}
// /like
export function likeMusic(params){
    return request({
        url:"/like",
        method:"get",
        params
    })
}

export function getLikeList(params){
    return request({
        url:"/likelist",
        method:"get",
        params
    })
}
//用户关注列表

export function getGzList(params){
    return request({
        url:"/user/follows",
        method:"get",
        params
    })
}
export function getGsList(){
    return request({
        url:"/artist/sublist",
        method:"get",
        
    })
}

export function setGzSongGer(params){
    return request({
        url:"/artist/sub",
        method:"get",
        params
    })
}
//粉丝

export function getFS(params){
    return request({
        url:"/user/followeds",
        method:"get",
        params
    })
}


export function getRecent(params){
    return request({
        url:"/record/recent/song",
        method:"get",
        params
    })
}

